<link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>


<?php
	echo $this->Html->css('style-more');	
?>

<div id="main-form">

	
	<h1>Ledger Entry</h1>
	
	<div class="top-group">
		<div class="form-group">
		<label for="">Date</label>
		<input id="datepicker" type="text" class="form-control" value='<?php echo date('m/d/Y')?>' name="tgl" />  
		</div>
	</div>
	<div class="left-group">
		<div class="form-group">
		<label for="">Description</label>
		<textarea class="form-control bigger" name="desc"></textarea>  
		</div>
	</div>
	<div class="mid-group">
		<div class="form-group">
		<label for="">amount</label>
		<div class="amount-control">
		<span class="negative">-(Rp</span>
		<span class="negative">)</span>
		<span class="positive show">Rp </span>
		<input type="text" id="amount" class="form-control bigger" name="amn" onkeyup = "ThousandSeparate(this)"/>
		</div>
		</div>
		<div class="form-group debcre">
		<label>Debit</label>
		<input type="radio" name="payment" id="debit" value="Debit"/>
		<span>Debit</span>
		<label>Credit</label>
		<input type="radio" checked name="payment" id="credit" value="Credit"/>
		<span>Credit</span>
		</div>
		<div class="form-group half">
		<label for="">Division</label>
		<div class="select-input">
		<select name="divi">
		<?php
		echo"<option>UVI</option>";
		echo"<option>UVM</option>";
		echo"<option></option>";
		?>
		</select>
		</div>
		</div>
		<div class="form-group half">
		<label for="">department</label>
		<div class="select-input">
		<select name="dpt">
		<?php
		echo"<option>HRD</option>";
		echo"<option>OPR</option>";
		echo"<option></option>";
		?>
		</select>
		</div>
		</div>
		<div class="form-group">
		<label for="">category</label>
		<div class="select-input">
		<select name="cat">
		<option>&nbsp;</option>
		<?php
		echo"<option>HRD</option>";
		echo"<option>OPR</option>";
		?>
		</select>
		</div>
		</div>
	</div>
	<div class="right-group">
		<div class="form-group">
		<button type="submit" class="btn btn-primary">save</button>
		<button type="reset" class="btn">reset</button>
	</div>

</div>



<?php
/*

<link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>
<div class="alt-scroll-holder" style="position: relative; width: 874px; height: 288px;">
<div class="alt-scroll-content" style="position: absolute; top: -84px; left: 0px; width: auto; height: auto;">

</div></div>

	echo $this->Html->css('style-more');	

	echo $this->Form->create();
		
	echo $this->Form->input('entry_date');
	echo $this->Form->input('details');
	echo $this->Form->input('amount', array(
		'type' => 'text'));
	
	$type_options = array('D' => 'Debit', 'C' => 'Credit');
			
	echo $this->Form->input('type', array('options' => $type_options, 'default' => 'C'));
	
	// superuser or organization admin
	if ( $this->Session->read('User')['User']['organization_id'] < 2 ) {
		echo $this->Form->input('division_id');
		echo $this->Form->input('department_id');
	}
	
	echo $this->Form->input('category_id');
	echo $this->Form->end( 'save' );

<div class="tableData">

</div>

*/

?>
